from diffusers import StableDiffusionPipeline
import torch

model_id = "model/anything-v5"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")

prompt = "dog"
image = pipe(prompt).images[0]

image.save("x.png")

# python convert_diffusers20_original_sd.py C:\Users\21790\Downloads\AnythingV5_v5PrtRE.safetensors..\model\anything - v5 - -v1 - -reference_model runwayml / stable - diffusion - v1 - 5


# C:\Users\21790\Desktop\sd-webui-aki\sd-webui-aki-v4\sd-webui-aki-v4\models\Stable-diffusion\revAnimated_v122.safetensors